#! /bin/python3

import os
import sys
import time
import random

if __name__ == "__main__":
    s = random.randint(5, 10)
    time.sleep(s)
    if s%2 == 0:
        os.system("echo %s Passed > %s_sim_dir/sim_%s.log"%(sys.argv[2], sys.argv[2], sys.argv[2]))
    #else:
    #    os.system("echo %s failed > %s_sim_dir/sim_%s.log"%(sys.argv[2], sys.argv[2], sys.argv[2]))
    print(sys.argv)
    